package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Wenda;
import cn.wolfcode.luowowo.article.domain.WendaTag;
import cn.wolfcode.luowowo.article.query.WendaQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 游记推荐
 */
public interface IWendaTagService {

    /**
     * 更新问答标签
     * @param wenda
     */
    void saveOrUpdate(WendaTag wenda);

    /**
     * 删除问答标签
     * @param id
     */
    void delete(Long id);

    /**
     * 查询标签
     * @param id
     * @return
     */
    WendaTag get(Long id);

    /**
     * 通过问答ID查询标签
     * @param wendaId
     * @return
     */
    List<WendaTag> selectByWendaId(Long wendaId);

    List<WendaTag> selectAll();
}
